import _fetch from "api_xukaiyu/fetch";
/**
 * 保存分享获取红包配置
 * @param { Object } data 请求参数
 * {
 *   totalNum 单次分享的红包个数
 *   newProbabilities 新人红包配置
 *   perNum 单人每日领取个数上限
 *   oldProbabilities 老用户红包配置
 * }
 */
export function save_conf(data) {
  return _fetch({
    url: "backend/share_gift_conf/save_conf",
    method: "POST",
    data: data,
    headers: {
      "Content-Type": "application/json"
    }
  });
}
/**
 * 查询分享获取红包配置
 */
export function query_share_gift_conf(data) {
  return _fetch({
    url: "backend/share_gift_conf/query_share_gift_conf",
    method: "POST",
    data: data,
    headers: {}
  });
}